package com.fcat.common.user.mapper;

import com.fcat.springboot.mybatis.mapper.base.TsuantoneBaseMapper;
import com.fcat.common.user.entity.Dict;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DictMapper extends TsuantoneBaseMapper<Dict> {
    List<Dict> getListByTypeCode(String typeCode);
    String getNameByValue(String value);
    //List<Dict> getNameSortListByTypeCode(String typeCode);
    List<Dict> getListByTypeCodes(Map<String, Object> map);
    List<Dict> getListByTypeCodeAndName(@Param("typeCode") String typeCode, @Param("name") String name);

    Dict getDictByTypeCodeAndValue(@Param("typeCode") String typeCode, @Param("value") String value);

}